import React, {Component} from 'react'
import BrowserRouter from "./BrowserRouter";
import Route from './Route'
import Link from './Link'
class CreatRoute extends Component {
  render() {
    return (
      <BrowserRouter>
        <ul>
          <li>
            <Link to="/home">home</Link>
          </li>
          <li>
            <Link to="/about">about</Link>
          </li>
        </ul>

        <Route path="/home" render={() => <h2>Home</h2>} />
        <Route path="/about" render={() => <h2>About</h2>} />
      </BrowserRouter>
    )
  }
}

export default CreatRoute